package com.zz.ecommerce.declareManage.changeDeclare;

import com.zz.ecommerce.common.bean.qdc.db.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by admin on 2016/3/30.
 * <p>
 * 生成申报单Controller
 */
@Controller
@RequestMapping("/changeDeclare")
@Scope("prototype")
public class ChangeDeclareController {

    @Autowired
    private ChangeDeclareService changeDeclareService;

    @RequestMapping(value = "changeDeclareById")
    @ResponseBody
    public boolean changeDeclareById(TDeclformHeadQdc tDeclformHeadQdc) {
        return changeDeclareService.changeDeclare(tDeclformHeadQdc);
    }
}
